package com.inspur.edp.common;


public enum ApiEnum {

    ADDUSER("/api/dev/main/v1.0/paasusersynchronization/adduserreceive"),
    CHECKENVIRONMENT("/api/dev/main/v1.0/paasusersynchronization/checkenvironment"),
    SAVEENVIRONMENT("/api/dev/main/v1.0/paasusersynchronization/saveenvironment"),
    CHECKUSER("/api/runtime/sys/v1.0/users"),
    USERSWITCH("/api/runtime/sys/v1.0/userLimit/items"),
    USERSSWITCH("/api/runtime/sys/v1.0/userLimit/users"),
    POSITION("/api/runtime/sys/v1.0/positions"),
    USERPOSITION("/api/runtime/sys/v1.0/user-position");
    private String name;

    ApiEnum(String name){
        this.name = name;
    }

    public String getName(){
        return name;
    }

    public String getApiAddress(String targetAddress){
        return targetAddress+this.name;
    }
}
